package demo1;

class A{

}
class B{

}
public class test {
    public static void func(Object Obj){

        System.out.println(Obj);
    }
    public static void main(String[] args) {
        func(new A());
        func(new B());

    }
}
